<?php

use think\Db;

$res = Db::name('dict')->field(['abbreviation','content','type'])->where('lang','zh')->select();

$returnData = array();
$resCount = count($res);
for ($i=0; $i < $resCount; $i++) { 
	if($res[$i]['type'] == 1){
		$returnData[$res[$i]['abbreviation'].'_btn'] = $res[$i]['content'];
	}else{
		$returnData[$res[$i]['abbreviation']] = $res[$i]['content'];
	}
}
// dump($returnData);die;
return $returnData;
